#ifndef _KC_RECEIVERERROR_H__KC_
#define _KC_RECEIVERERROR_H__KC_

#include <stdexcept>

namespace kc_sf
{
	enum ReceiverErrorType
	{
		NoConnectionWithClient,
		SystemError
	};

	class ReceiverError : public std::runtime_error
	{
		public:

			ReceiverError( ReceiverErrorType type, const std::string &err )
			: std::runtime_error( err ),
			  Type (type)
			{
			}

			ReceiverErrorType Type;
	};
}

#endif // _KC_RECEIVERERROR_H__KC_
